package guojin.sqlsession;

import guojin.pojo.Configeration;

/**
 * @author haoge
 * @version $Id DefaultSqlsessionFactory.java, v 0.1 2021-06-12 21:02 haoge Exp $$
 */
public class DefaultSqlsessionFactory implements SqlSessionFactory{

    private Configeration configeration;

    public DefaultSqlsessionFactory(Configeration configeration) {
        this.configeration = configeration;
    }


    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(configeration);
    }
}
